﻿@{
    Layout = null;
}
<style>
    * {
            padding: 0;
            margin: 0;
            cursor:pointer;
        }
      .bg-con #insert{
       position: absolute;
    width: 70%;
    height: 50%;
    left: 15%;
    top: 25%;
    }
        .bg-con #insert .awardInfo{
            position:relative;
            height:55%;
    }
             .bg-con #insert .awardInfo > img{
            position:absolute;
            width:100%;
            height:100%;
    }
                  .bg-con #insert .awardInfo > p{
            position:absolute;
           text-align:center;
           bottom:5px;
           width:100%;
           color:whitesmoke;
    }
          .bg-con #insert  .btn{
           background:#FDD542 !important;
           color:#7D3802;
           border:none;
    }
                 .bg-con #insert  .rule-title{
                     text-align:center;
                     margin:10Px 0;
          
    }
                    .bg-con #insert  .rule-content{
                        overflow:auto;
                        padding:0 0 0 8px;
                        height:78%;
      
    }
                    .award-details{
                        width:100%;
                        height:100%;
                        background:#f2f2f2;

                    }
                   
                      .award-details .award-head{
                          background:#CB0101;
                          text-align:center;
                          color:white;
                          padding:0 0 10px;

                    }
                       .award-details .award-head p:nth-child(1){
                          text-align:left;
                    }

                      .award-details .award-body{
                           background:white;
                          text-align:center;
                            padding:10px 0 ;
                       }
                      .award-details  .award-details-list{
                       display:flex;
                       align-items:center;
                       padding-bottom:5px;
                       border-bottom:dashed  1px #E0E0E0;
                       background:white;
                    }
                     .award-details  .award-details-list span:nth-child(1){
                     margin-left:5px;
                    }
                     .award-details  .award-details-list span:nth-child(2){
                        margin-right:5px;
                        margin-left:5px;
                    }
                     .award-details  .award-details-list span:nth-child(3){
                       margin-right:5px;
                    }
</style>






    <div id="insert">

    </div>


<script>
   var tid = @ViewBag.Tid;//模板Id
    $.ajax({
        url: "GetErrorHtml",
        data: { id:tid},
        type:"post",
        success: function (res) {
            var html = decode(res);
            $("#content").html(html);
        }
    });
    function decode(input) {
        _keyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
        var output = "";
        var chr1, chr2, chr3;
        var enc1, enc2, enc3, enc4;
        var i = 0;
        input = input.replace(/[^A-Za-z0-9\+\/\=]/g, "");
        while (i < input.length) {
            enc1 = _keyStr.indexOf(input.charAt(i++));
            enc2 = _keyStr.indexOf(input.charAt(i++));
            enc3 = _keyStr.indexOf(input.charAt(i++));
            enc4 = _keyStr.indexOf(input.charAt(i++));
            chr1 = (enc1 << 2) | (enc2 >> 4);
            chr2 = ((enc2 & 15) << 4) | (enc3 >> 2);
            chr3 = ((enc3 & 3) << 6) | enc4;
            output = output + String.fromCharCode(chr1);
            if (enc3 != 64) {
                output = output + String.fromCharCode(chr2);
            }
            if (enc4 != 64) {
                output = output + String.fromCharCode(chr3);
            }
        }
        output = _utf8_decode(output);
        return output;
    }
    function _utf8_decode(utftext) {
        var string = "";
        var i = 0;
        var c = c1 = c2 = 0;
        while (i < utftext.length) {
            c = utftext.charCodeAt(i);
            if (c < 128) {
                string += String.fromCharCode(c);
                i++;
            } else if ((c > 191) && (c < 224)) {
                c2 = utftext.charCodeAt(i + 1);
                string += String.fromCharCode(((c & 31) << 6) | (c2 & 63));
                i += 2;
            } else {
                c2 = utftext.charCodeAt(i + 1);
                c3 = utftext.charCodeAt(i + 2);
                string += String.fromCharCode(((c & 15) << 12) | ((c2 & 63) << 6) | (c3 & 63));
                i += 3;
            }
        }
        return string;
    }
</script>